<div id="news">
    <img src="<?php echo img_theme('/mcgannigan/mcgannigan_portrait.png');?>" class="portrait" />
    <p class="portrait_title">McGannigan</p><p class="portrait_subtitle"><?php echo lang('label_portrait_subtitle');?></p>

    <?php if($total_unread_news != 0):?>
    <a href="<?php echo site_url('home/news/'.$last_news->id);?>">
        <p class="title2"><?php echo $last_news->$title;?></p>
    </a>
    <p class="news_text">
        <?php echo $last_news->$last_news_text;?>
    </p>
    <form method="post" accept-charset="utf-8" action="<?php echo site_url(uri_string())?>">
        <input type="hidden" name="news_item_id" value="<?php echo $last_news->id;?>" />
        <input type="submit" name="submit" value="<?php echo lang('label_next');?> <?php echo '('.$total_unread_news.')';?>" class="button" />
    </form>
    <p class="news_date"><?php echo $last_news->date;?></p>
    <?php else:?>
    <p class="title2"><?php echo lang('label_latest_news');?></p>
        <br>
    <?php foreach ($latest_news as $news):?>
        <a href="<?php echo site_url('home/news/'.$news->id);?>">
            <p class="news_text">
            <?php echo $news->date . ': ' . $news->$title;?>
            </p>
        </a>
        <?php endforeach;?>
    <?php endif;?>
</div>

<div id="home_changelog">
    <div><p class="title"><?php echo lang('label_last_updates');?></p><hr></div>
    <?php foreach($changelog as $row):?>
    <div class="em">
        <a href="<?php echo site_url('home/changelog/'.$row->id);?>"><?php echo $row->$title;?></a>
        <p class="text_date"><?php echo $row->date;?></p>
    </div>
    <?php endforeach;?>
</div>

<div id="home_development">
    <div><p class="title"><?php echo lang('label_under_development');?></p><hr></div>
    <?php foreach($development as $row):?>
    <div class="em">
        <a href="<?php echo site_url('home/development/'.$row->id);?>"><?php echo $row->$title;?></a>
        <p class="text_date"><?php echo $row->date;?></p>
    </div>
    <?php endforeach;?>
</div>


